package com.weng.sso.server.service.impl;

import com.weng.sso.server.entity.User;
import com.weng.sso.server.mapper.UserMapper;
import com.weng.sso.server.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public User findUser(String account) {

       return userMapper.findByUserName(account);
    }

    @Override
    public int changePwd(String password, String id) {
        return userMapper.changePwd(password,id);
    }


}
